import { createRouter, createWebHistory ,createWebHashHistory} from 'vue-router'
import HomeView from '@/views/HomeView.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/friends',
      name: 'friends',
      component: () => import('../views/Friends.vue')
    },
    {
      path: '/add',
      name: 'add',
      component: () => import('../views/Add.vue')
    },
    {
      path: '/find',
      name: 'find',
      component: () => import('../views/Find.vue')
    },
    {
      path: '/me',
      name: 'me',
      component: () => import('../views/Me.vue')
    }
  ]
})

export default router
